package com.oo.packaging_2.truck;

import java.util.Scanner;

/**
 * TruckTest--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-19 16:04
 **/
public class TruckTest {
    public static void main(String[] args) {
        Truck one = new Truck("001", "大卡车", "绿色", 50, 100);
        System.out.println("请输入租车人姓名：");
        Scanner sc = new Scanner(System.in);
        String name = sc.nextLine();
        System.out.println("请输入租赁天数：");
        int day = sc.nextInt();
        one.hire(name, day);
    }
}
